package com.xu.chapter01;
/**
 *
 * @author xudenghui
 * @create 2023-05-23 8:41
 **/
public class Decorator implements Component{


    protected  Component component;

    public Component getComponent() {
        return component;
    }

    public void setComponent(Component component) {
        this.component = component;
    }

    @Override
    public void Operation() {
        if (component != null){
            component.Operation();
        }

    }
}
